package me.yricky.cov_spectrum.model.beans

import me.yricky.cov_spectrum.model.utils.toObject

data class CollectionItem(
    val description:String,
    val email:String,
    val id:Int,
    val maintainers:String,
    val title:String,
    val variants:List<VariantItem>
){
    data class VariantItem(
        val description: String,
        val highlighted:Boolean,
        val name:String,
        val query:String,
    ){

        val queryCase by lazy {
            query.toObject(QueryCase::class.java)
        }
    }
}